package com.sgb.kjwl.view.ui.adapter;

import android.content.Context;

import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.TwoLevelChildForPopWindowEntity;
import com.sgb.kjwl.model.entity.TwoLevelForPopWindowEntity;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class TwoLevelForPopWindowAdapter<D extends TwoLevelForPopWindowEntity> extends BaseRecycleAdapter<TwoLevelChildForPopWindowEntity<List<D>>> {

    public TwoLevelForPopWindowAdapter(Context context, List<TwoLevelChildForPopWindowEntity<List<D>>> datas) {
        super(context, R.layout.item_two_level_for_pop_window, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, TwoLevelChildForPopWindowEntity<List<D>> s) {
        holder.setBinding(BR.twoLevel,s);
    }

}